cmake_minimum_required(VERSION 3.16)
project(kuiper_course)

set(CMAKE_CXX_STANDARD 17)

# 包含头文件路径
include_directories(/usr/local/protobuf/include)
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/include/data)
include_directories(${CMAKE_SOURCE_DIR}/lib/glog-0.6.0/include)
include_directories(${CMAKE_SOURCE_DIR}/lib/armadillo-12.4.2/include)
# 指定库搜索路径
link_directories(${CMAKE_SOURCE_DIR}/lib/armadillo-12.4.2/lib)
link_directories(${CMAKE_SOURCE_DIR}/lib/glog-0.6.0/lib)


set(link_lib glog pthread)
set(link_math_lib armadillo blas lapack)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_executable(kuiper_course main.cpp)

# target_include_directories(kuiper_course PUBLIC /usr/include/armadillo_bits)
#target_include_directories(kuiper_course PUBLIC ${GTEST_INCLUDE_DIRS})
target_link_libraries(kuiper_course ${link_lib} ${link_math_lib})

enable_testing()
add_subdirectory(test)
